﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SmallJob.Model
{
    public enum EPaymentStatus
    {
        No_Payment=0,
        Pre_Payment=1,
        Finish_Payment=2
    }
    public class Order
    {
        public int ID { get; set; }
        public int BuyerID { get; set; }
        public int SellerID { get; set; }
        public int ProvideID { get; set; }
        public int Price { get; set; }
        public string SecretCode { get; set; }
        public int Status { get; set; }
        public bool Completed { get; set; }
        public string Comment { get; set; }
        public byte? Rate { get; set; }
        public bool IsDeleted { get; set; }
        public int RequestID { set; get; }
        public int Type { set; get; }
        public DateTime CreatedDate { get; set; }
        public DateTime ModifiedDate { get; set; }
        public DateTime? StartedDate { get; set; }
        public int TimeToFinish { get; set; }
        public Boolean DisableDetails { get; set; }
        public DateTime? TimeSendResult { get; set; }
        public DateTime? Deadline { get; set; }
        public int PaymentStatus { get; set; }

        public Provide Provide { get; set; }
        public User Seller { get; set; }
        public User Buyer { get; set; }
        public Request Request { get; set; }
    }
}
